import { request } from '@/utils';

// 管理员列表
export const list = () => {
  return request({
    url: '/business/application/list',
    method: 'get',
  });
};

// 删除管理员
export const deletePersonnel = (data) => {
  return request({
    url: '/business/application/delete',
    method: 'delete',
    data,
  });
};

// 添加管理员
export const addPersonnel = (data) => {
  return request({
    url: '/business/application/add',
    method: 'post',
    data,
  });
};

// 角色鉴权
export const role = () => {
  return request({
    url: '/oauth/getCurrentLoginInfo',
    method: 'get',
  });
};
